<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page errorPage="../../error.jsp?from=alum_AulaVirtualEnlaces.jsp" %>
<%@ page import="java.util.Vector" %>
<%@ page import="agb.Modelo.Publicaciones" %>

<%@ page import="java.io.*" %>
<%@ page import="agb.Modelo.Publicaciones" %>
<%@page session="true" %>
<%--@taglib uri="/struts-tags" prefix="s"--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
            <link href="/SistemaWebAGB_2.0/dinamica/css/admin_1.css" rel="stylesheet" type="text/css" />
            <link href="/SistemaWebAGB_2.0/dinamica/css/alumno.css" rel="stylesheet" type="text/css" />
			<link href="/SistemaWebAGB_2.0/dinamica/css/style.css" rel="stylesheet" type="text/css" />
       
        <title></title>
        <%
        int codigoTipo = Integer.parseInt(request.getParameter("codTipo"));
       Vector<Publicaciones> LDescargas = new Vector<Publicaciones>();
     //  LDescargas = Publicaciones.listaDescargas(codigoTipo);
            
        %>

    </head>
    <body>
        
        <table width="100%" border="0" cellpadding="0" cellspacing="0">

            <tr>
                <td height="143"></td>
                <td colspan="4" valign="top">

                    <table align="CENTER" width="85%" border="0" cellpadding="0" cellspacing="0" id="box-table-a">
                        <!--DWLayoutTable-->
                         <%
                        if(LDescargas.size()>0){%>
                        <tr>
                            <th  align="left"  valign="middle" >Nombre: &nbsp; </th>
                            <th  align="left"  valign="middle" >Descripcion: &nbsp;</th>
                            <th align="left"  valign="middle" >Descarga: &nbsp; </th>
                        </tr>
                        <%
                        
                            for(Publicaciones o : LDescargas){

                        %>
                        <tr valign="middle">
                            <td valign="middle" class="txtBase" align="left"> <%=o.getTitulo() %>&nbsp; </td>
                            <td valign="middle"class="txtBase" align="left"> <%=o.getResumen() %>&nbsp; </td>
                            <td valign="middle" class="txtBase" align="left"> <a href="descarga.jsp?descarga=<%=o.getArchivo()%>" >Descarga</a>&nbsp; </td>
                            
                        </tr></table>
                        <%}}else{%>
                         <table align="CENTER" width="85%" border="0" cellpadding="0" cellspacing="0" id="box-table-a">
                        <!--DWLayoutTable-->
                        <tr>
                            <th align="center"  valign="middle" >ACTUALMENTE NO SE ENCUENTRA NINGUNA DESCARGA DISPONIBLE &nbsp; </th>
                        </tr>
                  </table>
                        <%}%>
                

                </td>
            </tr>
        </table>
        </body>

</html>